package com.yytek.upgrade.mapper;

import java.util.List;
import com.yytek.upgrade.domain.UpgradeStrategy;

/**
 * 升级策略Mapper接口
 * 
 * @author yytek-iot
 * @date 2022-09-06
 */
public interface UpgradeStrategyMapper 
{
    /**
     * 查询升级策略
     * 
     * @param id 升级策略主键
     * @return 升级策略
     */
    public UpgradeStrategy selectUpgradeStrategyById(Long id);

    /**
     * 查询升级策略列表
     * 
     * @param upgradeStrategy 升级策略
     * @return 升级策略集合
     */
    public List<UpgradeStrategy> selectUpgradeStrategyList(UpgradeStrategy upgradeStrategy);

    /**
     * 新增升级策略
     * 
     * @param upgradeStrategy 升级策略
     * @return 结果
     */
    public int insertUpgradeStrategy(UpgradeStrategy upgradeStrategy);

    /**
     * 批量新增升级策略
     *
     * @param upgradeStrategyList 升级策略列表
     * @return 结果
     */
    public int batchUpgradeStrategy(List<UpgradeStrategy> upgradeStrategyList);

    /**
     * 修改升级策略
     * 
     * @param upgradeStrategy 升级策略
     * @return 结果
     */
    public int updateUpgradeStrategy(UpgradeStrategy upgradeStrategy);

    /**
     * 批量修改升级策略
     *
     * @param upgradeStrategyList 升级策略列表
     * @return 结果
     */
    public int updateListUpgradeStrategy(List<UpgradeStrategy> upgradeStrategyList);

    /**
     * 删除升级策略
     * 
     * @param id 升级策略主键
     * @return 结果
     */
    public int deleteUpgradeStrategyById(Long id);

    /**
     * 批量删除升级策略
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteUpgradeStrategyByIds(Long[] ids);
}
